﻿using Sunny.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CYLScheck.UIcomm
{
    /// <summary>
    /// 全局参数保存类
    /// </summary>
    public static class Gobleset
    {
        /// <summary>
        /// 全局连接数据库的数据库名
        /// </summary>
        public static string link_databasename = "";

 
        public static string link_serverport = "";
        public static string link_servername = "";
        public static string link_datauser = "";
        public static string link_datapassword = "";
        public static string link_Maindatabase = "";



        /// <summary>
        /// 全局登录用户名
        /// </summary>
        public static string username = "";
        /// <summary>
        /// 全局登录用户 密码
        /// </summary>
        public static string userpassword = "";

        /// <summary>
        /// 是否启用登录用户 true 为启用
        /// </summary>
        public static bool enableuser = true;
        /// <summary>
        /// 用户设置的UI编号
        /// </summary>
        public static int userUI = 3;
       /// <summary>
       /// 全局控制界面类型
       /// </summary>
        public static UIStyle Gobel_userstyle = UIStyle.Orange;
        /// <summary>
        /// 记录的cpuid号
        /// </summary>
        public static string Gobel_regcpuid="";

        /// <summary>
        /// 记录的硬盘id号
        /// </summary>
        public static string Gobel_regdskid = "";
        public static string Gobel_reguserid = "";
        public static string Gobel_regmacid = "";
        public static string Gobel_regversionid = "";
     
        //注册检查用的cpuid字符串
        public static string Gobel_checkCpustr="";
        //注册检查用的硬盘id字符串
        public static string Gobel_checkDiskstr = "";
        public static string Gobel_checkMacstr = "";
        //检查到是否是注册用户标志
        public static string Gobel_IsRegUser = "NO";


    }

    /// <summary>
    /// 保存全局硬件信息类
    /// </summary>
    public  static class GobleSysInfo
    {
        public static string CPUID = "";
        public static string DiskHardNumber = "";
        public static string ComputeName = "";
        public static string PPhysicalMemory = "";
        public static string MacAdress = "";
        public static string IPAdress = "";
        public static string SysType= "";



    }
}
